<header>
    <div class="xh_header">
        <div class="header_box">
            <div id="header_logo">{$site_info.site_name|default=''}</div>
        </div>
        <div class="navbar_box">
            <div id="navbar-menu">
                <navigation nav-id="" root="ul" id="main-navigation" max-level="0" class="">
                    <navigationMenu root="li">
                        <if condition="$level gt 1">
                            <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">{$menu.name|default=''}</a>
                            <else/>
                            <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">{$menu.name|default=''}</a>
                        </if>
                    </navigationMenu>
                </navigation>
                </ul>
            </div>
        </div>
    </div>
    <ul id="home-slider" class="list-unstyled">
        <php>
            $top_slide_id=empty($theme_vars['top_slide'])?1:$theme_vars['top_slide'];
        </php>
        <slides id="$top_slide_id">
            <li>
                <a href="{$vo.url|default=''}"><img src="{:cmf_get_image_url($vo.image)}" alt="" class="banner_img" /></a>
            </li>
        </slides>
    </ul>
    <div class="search_box">
        <form class="navbar-form navbar-right" method="post" action="{:cmf_url('portal/Search/index')}">
            <div class="form-group">
                <input type="text" class="form-control keySearch" name="keyword" placeholder="输入关键词.." value="{:input('param.keyword','')}">
            </div>
            <input type="submit" class="btn_primary" />
        </form>
    </div>
</header>

<script type="text/javascript">
    $(function() {
        var index = parseInt('[menuli]') - 1;
        $("#navbar-menu li").eq(index).addClass("current");
    });
</script>